package Rbac.domain.vo;

/**
 * 业务层面返回视图层面格式
 */
public class Result {
    /**
     * 业务是否成功
     */
    public boolean success;
    /**
     * 业务返回信息
     */
    public String message;
    /**
     * 业务返回数据
     */
    public Object data;
    public static Result success(String message, Object data){
        Result result=new Result();
        result.success=true;
        result.message=message;
        result.data=data;
        return result;
    }
    public static Result failure(String message){
        Result result=new Result();
        result.message=message;
        return result;
    }
}
